<%@page import="fr.uniscol.model.BaseAnneeScolaire"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<jsp:useBean id="enseignant" type="fr.uniscol.model.Enseignant" scope="request" />

<script type="text/javascript">
	$(document).ready(function(){
		$("#tabs").tabs({active : 0});
	});
</script>

<h4>${enseignant.nom} ${enseignant.prenom}</h4>

<div class="container-fluid">
    <div class="row">
    <form:form name="frmEnseignant" action="enseignant.save" method="post" modelAttribute="enseignant" class="form-horizontal" role="form">
		
        <form:hidden path="id" />
        
		<div class="form-group">
	   		<label class="col-sm-1 control-label" for="nom">Nom</label>
	   		<div class="col-sm-6">
				<form:input path="nom" placeholder="Nom" required="true" class="form-control" />
			</div>
		</div>
		
		<div class="form-group">
	   		<label class="col-sm-1 control-label" for="nom">Prénom</label>
	   		<div class="col-sm-6">
				<form:input path="prenom" placeholder="Prénom" required="true" class="form-control" />
			</div>
		</div>
		
        <div class="col-sm-offset-8 col-sm-2 form-group">
            <form:button type="submit" class="btn btn-primary btn-md">Enregistrer</form:button>
        </div>
        
	</form:form>
    </div>
	
	<div class="row">
		<div id="tabs" class="col-sm-10">
			<ul id="tabsMenu" class="nav nav-tabs nav-justified">
			  <li><a href="#servicesTab">Services</a></li>
			  <li><a href="#edtTab">Emploi du temps</a></li>
			  <li><a href="#devoirsTab">Devoirs</a></li>
			</ul>
			
			<div id="servicesTab">
				<jsp:include page="enseignant/ServicesEnseignant.jsp" />
			</div>

			<div id="edtTab">
				<jsp:include page="enseignant/EDTEnseignant.jsp" />
			</div>
			
			<div id="devoirsTab">
				<jsp:include page="enseignant/DevoirsEnseignant.jsp" />
			</div>			
		</div>
	</div>
	
</div>